<template>
  <view class="question">
    <view class="container">
      <view class="questionItem">
        <view class="title">{{questionList.question}}</view>
        <view class="answer">{{ questionList.anstwer }}</view>
      </view>
    </view>
  </view>
</template>

<script setup>
import './index.scss'
import { reactive, ref } from 'vue';
import Taro, {useDidShow} from '@tarojs/taro'
const questionList = reactive({question: '', anstwer: ''})
useDidShow(() => {
  let params =Taro.getCurrentInstance().router.params
  console.log(params)
  if (params) {
    questionList.question = params.question
    questionList.anstwer = params.anstwer
  }
})
Taro.showShareMenu({
  withShareTicket: true,
  menus: ['shareAppMessage', 'shareTimeline']
})
</script>
